package HLLibClasses;

import HLCode.HLClassManager;
import HLCode.HLLibClass;
import HLCode.HLObject;
import HLLib.base.HLDateTime;
import HLLib.base.HLList;
import HLLib.base.HLString;
import HLLib.json.HLJSONArray;
import HLLib.json.HLJSONObject;

public class HLClassJSONObject extends HLLibClass {
    public HLClassJSONObject(HLClassManager owner) {
        super(owner);
    }

    public HLObject NewObject() {
        return new HLJSONObject();
    }

    public void Execute(HLObject self, int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            ((HLJSONObject) self).Init((HLString)args.GetObject(0));
            break;
        }
        case 1: {
            if (resultOwnerObject == null) {
                ((HLJSONObject) self).isNull((HLString)args.GetObject(0));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, ((HLJSONObject) self).isNull((HLString)args.GetObject(0)));
            }
            break;
        }
        case 2: {
            if (resultOwnerObject == null) {
                ((HLJSONObject) self).names();
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLJSONObject) self).names());
            }
            break;
        }
        case 3: {
            if (resultOwnerObject == null) {
                ((HLJSONObject) self).toString1();
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLJSONObject) self).toString1());
            }
            break;
        }
        case 4: {
            if (resultOwnerObject == null) {
                ((HLJSONObject) self).ContainsKey((HLString)args.GetObject(0));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, ((HLJSONObject) self).ContainsKey((HLString)args.GetObject(0)));
            }
            break;
        }
        case 5: {
            if (resultOwnerObject == null) {
                ((HLJSONObject) self).length();
            } else {
                resultOwnerObject.SetInt(resultIndex, ((HLJSONObject) self).length());
            }
            break;
        }
        case 6: {
            if (resultOwnerObject == null) {
                ((HLJSONObject) self).getInt((HLString)args.GetObject(0));
            } else {
                resultOwnerObject.SetInt(resultIndex, ((HLJSONObject) self).getInt((HLString)args.GetObject(0)));
            }
            break;
        }
        case 7: {
            if (resultOwnerObject == null) {
                ((HLJSONObject) self).getBoolean((HLString)args.GetObject(0));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, ((HLJSONObject) self).getBoolean((HLString)args.GetObject(0)));
            }
            break;
        }
        case 8: {
            if (resultOwnerObject == null) {
                ((HLJSONObject) self).getString((HLString)args.GetObject(0));
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLJSONObject) self).getString((HLString)args.GetObject(0)));
            }
            break;
        }
        case 9: {
            if (resultOwnerObject == null) {
                ((HLJSONObject) self).getJSONObject((HLString)args.GetObject(0));
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLJSONObject) self).getJSONObject((HLString)args.GetObject(0)));
            }
            break;
        }
        case 10: {
            if (resultOwnerObject == null) {
                ((HLJSONObject) self).getJSONArray((HLString)args.GetObject(0));
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLJSONObject) self).getJSONArray((HLString)args.GetObject(0)));
            }
            break;
        }
        case 11: {
            if (resultOwnerObject == null) {
                ((HLJSONObject) self).getDateTime((HLString)args.GetObject(0));
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLJSONObject) self).getDateTime((HLString)args.GetObject(0)));
            }
            break;
        }
        case 12: {
            if (resultOwnerObject == null) {
                ((HLJSONObject) self).putInt((HLString)args.GetObject(0), args.GetInt(0));
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLJSONObject) self).putInt((HLString)args.GetObject(0), args.GetInt(0)));
            }
            break;
        }
        case 13: {
            if (resultOwnerObject == null) {
                ((HLJSONObject) self).putString((HLString)args.GetObject(0), (HLString)args.GetObject(1));
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLJSONObject) self).putString((HLString)args.GetObject(0), (HLString)args.GetObject(1)));
            }
            break;
        }
        case 14: {
            ((HLJSONObject) self).putJSONObject((HLString)args.GetObject(0), (HLJSONObject)args.GetObject(1));
            break;
        }
        case 15: {
            ((HLJSONObject) self).putJSONArray((HLString)args.GetObject(0), (HLJSONArray)args.GetObject(1));
            break;
        }
        case 16: {
            ((HLJSONObject) self).putDateTime((HLString)args.GetObject(0), (HLDateTime)args.GetObject(1));
            break;
        }
        case 17: {
            if (resultOwnerObject == null) {
                ((HLJSONObject) self).putList((HLString)args.GetObject(0), (HLList)args.GetObject(1));
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLJSONObject) self).putList((HLString)args.GetObject(0), (HLList)args.GetObject(1)));
            }
            break;
        }
        case 18: {
            if (resultOwnerObject == null) {
                ((HLJSONObject) self).putBoolean((HLString)args.GetObject(0), args.GetBoolean(0));
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLJSONObject) self).putBoolean((HLString)args.GetObject(0), args.GetBoolean(0)));
            }
            break;
        }
        case 19: {
            if (resultOwnerObject == null) {
                ((HLJSONObject) self).toHLString();
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLJSONObject) self).toHLString());
            }
            break;
        }
        case 20: {
            if (resultOwnerObject == null) {
                ((HLJSONObject) self).getKeys();
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLJSONObject) self).getKeys());
            }
            break;
        }
        }
    }
}
